For Next Loop procedure interperation. - 
Revision 01.15.2019


SEE SECTION 1 for FOR NEXT with NO STEP
SEE SECTION 2 for FOR NEXT with STEP POSTIVE (+2 or more)
SEE SECTION 3 for FOR NEXT with STEP NEGATIVE (-1 or more)



----------------------------------------
SECTION 1... FOR NEXT with NO STEP
----------------------------------------

To create a FOR-NEXT LOOP, use the following code.

( FOR X=1 to 10: CODE LOOP TO EXECUTE: NEXT X)

Add program lines to your original APPLESOFT code like the example.

10 X=1
20 CODE LOOP TO EXECUTE
30 IF X<10 THEN X=X+1:GOTO 20

Doing something similar to the above will keep your ASM basic translation
identical to the APPLESOFT original in function, and also allow usage
of the FOR-NEXT-LOOP as a variable.

CAUTION....
===================================================================
NOTE 1... see line 10.. the variable IS your FOR starting number

NOTE 2 ... see line 30.. the INCREMENET such as X=X+1 is the STEP. 
if you have a step greater than 1 see SECTION 2.

NOTE 3... see line 30.. the X<10 must contain a number equal to the
max value of FOR.  The X in line30 is 10 as per the original Applesoft.


---------------------------------------
SECTION 2... FOR NEXT WITH STEP great than 1 (postive)
---------------------------------------

( FOR X=1 to 10 STEP 2: CODE LOOP TO EXECUTE: NEXT X)

Add program lines to your original APPLESOFT code like the example.

10 X=1
20 CODE LOOP TO EXECUTE
30 X=X+2: IF X<11 THEN GOTO 20

CAUTION.... line 30 procedure is DIFFERENT than SECTION 1
===================================================================
NOTE 1... see line 10.. the variable IS your FOR starting number

NOTE 2 ... see line 30.. the INCREMENET such as X=X+2 is the STEP. 

NOTE 3... see line 30.. the X<10 must contain a number equal to the
max value of FOR +1.  The X in line30 is 11, not 10 like the original APPLESOFT.


---------------------------------------
SECTION 3... FOR NEXT WITH STEP that is NEGATIVE
---------------------------------------

( FOR X=10 to 1 STEP -2: CODE LOOP TO EXECUTE: NEXT X)

Add program lines to your original APPLESOFT code like the example.

10 X=10
20 CODE LOOP TO EXECUTE
30 X=X-2: IF X<1 THEN GOTO 20

CAUTION.... line 30 procedure is DIFFERENT than SECTION 1
===================================================================
NOTE 1... see line 10.. the variable IS your FOR starting number

NOTE 2 ... see line 30.. the INCREMENET such as X=X-2 is the STEP. 

NOTE 3... see line 30.. the X<1 must contain a number equal to the
min value of FOR +1.








